package cn.bdqn.xtxg.oof;

public final class Bus extends MotoVehicle {
	private int seatCount;
	public int getSeatCount() {
		return seatCount;
	}
	public void setSeatCount(int seatCount) {
		this.seatCount = seatCount;
	}
	public int calRent(int day) {
		int money=0;
		if(seatCount<=16)
		{
			money=800*day;
		}else {
			money=1500*day;
		}
		return money;
	}
	public Bus(String no,String brand,int seatCount )
	{
		this.setNo(no);
		this.setName(brand);
		this.seatCount=seatCount;
	}
	public Bus()
	{
		
	}
}
